package com.lin.cloud.disk.service;

import com.lin.cloud.disk.entity.pojo.CompanyDepartment;
import com.lin.cloud.disk.entity.request.department.DeleteDepartmentRequest;
import com.lin.cloud.disk.entity.request.department.UpdateDepartmentRequest;

import java.util.List;

/**
 * 公司部门服务类
 * @author ljc
 * @date 2021/1/13 18:25
 */
public interface ICompanyDepartmentService {

    /**
     * 获取部门ID列表 通过公司
     * @param companyId
     * @return
     */
    List<Long> getDepartmentIdListByCompany(Long companyId);


    /**
     *  创建公司部门关系映射
     * @param companyDepartment
     */
    void createCompanyDepartment(CompanyDepartment companyDepartment);

    /**
     * 删除公司部门
     * @param request
     */
    void deleteCompanyDepartment(DeleteDepartmentRequest request);


    /**
     * 更新公司部门关联表信息
     * @param request
     */
    void updateCompanyDepartment(UpdateDepartmentRequest request);

    /**
     * 公司是否存在该部门
     * @param companyId
     * @param departmentId
     * @return
     */
    Boolean companyIsExistDepartment(Long companyId, Long departmentId);
}
